home *** CD-ROM | disk | FTP | other *** search
/ IRIX Development Foundation 1.1 for IRIX 6.2 / SGI IRIX 6.2 Development Foundation 1.1.iso / dist / patchSG0001645.idb / usr / include / mqueue.h.z / mqueue.h
C/C++ Source or Header  |  1997-07-01  |  2KB  |  59 lines

  1. /*
  2.  * Copyright 1995, Silicon Graphics, Inc. 
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or 
  7.  * duplicated in any form, in whole or in part, without the prior written 
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions 
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or 
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished - 
  15.  * rights reserved under the Copyright Lanthesaws of the United States.
  16.  */
  17. #ident "$Id: mqueue.h,v 1.5 1996/07/02 18:42:38 joecd Exp $"
  18.  
  19. #ifndef __MQUEUE_H__
  20. #define __MQUEUE_H__
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. /*
  27.  * Interface definition file for POSIX 1003.1b message passing
  28.  */
  29. #include <sys/signal.h>
  30.  
  31. typedef __psint_t mqd_t;
  32.  
  33. typedef struct mq_attr {
  34.     long mq_flags;
  35.     long mq_maxmsg;
  36.     long mq_msgsize;
  37.     long mq_curmsgs;
  38. } mq_attr_t;
  39.  
  40. #if    _SGIAPI
  41. /* These two definitions are not application use */
  42. #define _MQ_SGI_OPEN_MAX    1028
  43. #define _MQ_SGI_PRIO_MAX    32
  44. #endif    /* _SGIAPI */
  45.  
  46. mqd_t mq_open(const char *, int, ...);
  47. int mq_close(mqd_t);
  48. int mq_unlink(const char *);
  49. int mq_send(mqd_t , const char *, size_t, unsigned int);
  50. ssize_t mq_receive(mqd_t, char *, size_t, unsigned int *);
  51. int mq_notify(mqd_t, const struct sigevent *);
  52. int mq_setattr(mqd_t, const struct mq_attr *, struct mq_attr *);
  53. int mq_getattr(mqd_t, struct mq_attr *);
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif /* __MQUEUE_H__ */
  59.